<?php

/*

require_once "html/spDiv.php";

class spAddToListCombo extends spDiv
{
	public function __construct( $data )
	{
		parent::__construct();
		parent::setClass( "spAddToListCombo" );

		//////////////////////////////////
		// select
		//////////////////////////////////

		$select = new spSelect( array("class"=>"spAddToListCombo-combo") );
		parent::addChild( $select );

		if ( isset($data["list"] ) )
		{
			foreach ( $data["list"] as $i )
			{
				$value = $i["value"];
				$content = $i["content"];
				$select->addChild( new spOption( array( "content"=>$content, "value"=>$value ) ) );
			}
		}

		//////////////////////////////////
		// add button
		//////////////////////////////////

		$button = new spInputButton( array("value"=>"Add", "name"=>"add") );
		parent::addChild( $button );

		//////////////////////////////////
		// create table as a layout
		//////////////////////////////////

		$table = new spTable;
		$table->addStyle( "width", "100%" );
		parent::addChild( $table );

		$row = new spTableRow;
		$table->addChild( $row );

		$row->addChild( $containerList = new spTableData(array("name"=>"list")) );
		$row->addChild( $containerTrashcan = new spTableData(array("name"=>"trashcan")) );

		$containerTrashcan->addStyle( "vertical-align", "bottom" );
		$containerTrashcan->addStyle( "text-align", "right" );

		//////////////////////////////////
		// create list
		//////////////////////////////////

		$containerList->addChild( $li = new spUnorderedList(array("class"=>"spAddToListCombo-ul")) );

		//////////////////////////////////
		// create trashcan
		//////////////////////////////////

		// fixme: we need to be wordpress free in the sigmaphp library
		$img = get_option('home').'/wp-content/plugins/gym/wpHelpers/trash.gif';
		$containerTrashcan->addChild( new spImage(array("src"=>$img, "class"=>"spAddToListCombo-trash")) );
	}
}

*/

?>